<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<s:url id="gridUrl" action="modul/ruangan/jqgrid" />
<s:url id="crudUrl" action="modul/ruangan/jqcrud" />
<div id="grid">
	<sjg:grid id="gridRuangan" caption="Ruangan" dataType="json"
		href="%{gridUrl}" pager="true" navigator="true"
		navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
		navigatorAddOptions="{height:'auto',width:400,reloadAfterSubmit:true}"
		navigatorEditOptions="{height:'auto',width:400,reloadAfterSubmit:false}"
		navigatorEdit="true" navigatorView="false" navigatorDelete="true"
		navigatorDeleteOptions="{height:280,reloadAfterSubmit:true}"
		gridModel="list" rowList="10,15,20" rowNum="15" editurl="%{crudUrl}"
		editinline="true" onSelectRowTopics="rowselect"
		onEditInlineSuccessTopics="oneditsuccess" viewrecords="true"
		width="700" shrinkToFit="true" autowidth="true">
		<sjg:gridColumn name="id" id="id" frozen="true" index="id" title="ID"
			width="60" formatter="integer" editable="false" sortable="false"
			search="true" searchoptions="{sopt:['eq','ne','lt','gt']}" />
		<sjg:gridColumn name="kode" id="kode" index="kode"
			title="Kode Ruangan" width="250" editable="true" edittype="text"
			sortable="true" search="false" />
		<sjg:gridColumn name="nama" id="nama" index="nama"
			title="Nama Ruangan" width="250" editable="true" edittype="text"
			sortable="true" search="false" />

	</sjg:grid>
</div>